from apps.user.models import User


def is_admin(username):
    is_admin = User.query.filter(User.username == username).first().is_admin
    return is_admin
